<p class="Paragraph">Comparison operators are used to compare two expressions. The result is returned as a Boolean expression that determines whether the comparison is True (-1) or False (0).</p>
<p class="Paragraph">Result : Boolean expression that specifies the result of the comparison. The result returned can only be (-1), if comparison is True, or (0) if it is False.</p>
<p class="Paragraph">Expression1, Expression2: Any numeric values or strings to be compared.</p>
<p class="P2">Comparison operators</p>
<p class="Paragraph">= : Equal to</p>
<p class="Paragraph">< : Less than</p>
<p class="Paragraph">> : Greater than</p>
<p class="Paragraph"><= : Less than or equal to</p>
<p class="Paragraph">>= : Greater than or equal to</p>
<p class="Paragraph"><> : Not equal to</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleUnequal</p>
<p class="PropText">DIM sFile As String</p>
<p class="PropText">DIM sRoot As String REM ' Root directory for file in and output</p>